import type { TabsProps } from "antd";

export const tabItems: TabsProps['items'] = [
  {
    key: "0",
    label: "登录",
    tabKey: "isSign",
    id: "isLogin"
  },
  {
    key: "1",
    label: "注册",
    tabKey: "isLogin",
    id: "isSign"
  }
]

interface Option {
  label: string
  value: string
}

interface conf {
  [key: string]: string
}

export interface IForm {
  [key: string]: conf
}

export interface FState {
  state: string
  code?: string
  name?: string
  mail?: string
  files?: {
    [key: string]: any
  }
  y_code?: string
}

export const CodeIds: Array<Option> = [
  {
    label: "居民身份证",
    value: "1"
  },
  {
    label: "营业执照",
    value: "2"
  },
  {
    label: "户口簿",
    value: "3"
  },
  {
    label: "港澳台居民居住证",
    value: "4"
  },
  {
    label: "外国人永久居留身份证",
    value: "5"
  },
  {
    label: "护照",
    value: "6"
  }
]
export const CertConf: IForm = {
  "1": {
    zhengjian_1: "请上传身份证人像面",
    zhengjian_2: "请上传身份证国徽面",
    msg: "请输入身份证号码"
  },
  "2": {
    title: "营业执照",
    zhengjian_3: "请上传营业执照（副本）",
    zhizhao_h: "请上传贵公司营业执照副本",
    zhengjian_4: "请上传贵公司经办人授权书",
    shouquan: "请上传授权书",
    user: "经办人证件",
    zhengjian_1: "请上传身份证反面",
    zhengjian_2: "请上传身份证正面",
    msg: "请输入统一社会信用代码"
  },
  "3": {
    zhengjian_1: "请上传户口簿首页",
    zhengjian_2: "请上传本人页面",
    msg: "请输入身份证号码"
  },
  "4": {
    zhengjian_1: "请上传居住证反面",
    zhengjian_2: "请上传居住证正面",
    msg: "请输入居住证号码"
  },
  "5": {
    zhengjian_1: "请上传身份证人像面",
    zhengjian_2: "请上传身份证国徽面",
    msg: "请输入居留身份证号码"
  },
  "6": {
    zhengjian_1: "请上传您的护照",
    msg: "请输入护照号码"
  }
}
